package com.future.future.movie.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.future.future.commons.utils.PageUtils;
import com.future.future.commons.utils.Query;

import com.future.future.movie.dao.MovieTypeMiddleDao;
import com.future.future.movie.entity.MovieTypeMiddleEntity;
import com.future.future.movie.service.MovieTypeMiddleService;


@Service("movieTypeMiddleService")
public class MovieTypeMiddleServiceImpl extends ServiceImpl<MovieTypeMiddleDao, MovieTypeMiddleEntity> implements MovieTypeMiddleService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MovieTypeMiddleEntity> page = this.page(
                new Query<MovieTypeMiddleEntity>().getPage(params),
                new QueryWrapper<MovieTypeMiddleEntity>()
        );

        return new PageUtils(page);
    }

}